package com.guigu.youxuan.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageInfo;
import com.guigu.youxuan.mapper.OutboundDetailMapper;
import com.guigu.youxuan.pojo.GatherDetails;
import com.guigu.youxuan.pojo.OutboundDetail;
import com.guigu.youxuan.service.IOutboundDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author liweixin
 * @since 2024-05-15
 */
@Service
public class OutboundDetailServiceImpl extends ServiceImpl<OutboundDetailMapper, OutboundDetail> implements IOutboundDetailService {
    @Autowired
    private OutboundDetailMapper outboundDetailMapper;
    /**
     * 出库明细列表查询所有出库明细表信息
     * @return
     */
    @Override
    public PageInfo<OutboundDetail> OutStorageDetailList(int payId) {
//        QueryWrapper<OutboundDetail> wrapper=new QueryWrapper<>();
//        System.out.println("payId = " + payId);
//        wrapper.eq("pay_id",payId);
        List<OutboundDetail> goodsInfos=outboundDetailMapper.list(payId);
        PageInfo<OutboundDetail> pageInfo=new PageInfo<>(goodsInfos);
        return pageInfo;
    }
}
